package com.ctgu.dao;

import com.ctgu.entity.Supplier;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SupplierMapper {

    Integer addSupplier(@Param("supplier") Supplier supplier);

    Integer deleteSupplierById(@Param("id") Integer id);

    Integer updateSupplier(@Param("supplier") Supplier supplier);

    List<Supplier> getAllSupplierList();

    Supplier getSupplier(@Param("id") Integer id);

    List<Supplier> querySupplierByIdName(@Param("name") String name);
}
